package cn.eonshine.cuba.inf.common.http;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

import lombok.Data;

@Data
public class Message {

	private int status;
	private String msg;
	private String pubKey;
	private long count = 0l;
	private int flag;

	public static String getErrorMsg(Exception e) {
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		e.printStackTrace(new PrintStream(baos));
		return baos.toString();
	}
}
